package cn.gailvlun.gll.net.pay;

import android.support.annotation.Nullable;

import cn.gailvlun.gll.net.ListRes;
import cn.gailvlun.gll.net.token.Authorization;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

public interface PayService {
    @Authorization
    @POST("pay/pay_order/")
    Observable<PayResult> pay(@Body PayReq payReq);

    @Authorization
    @GET("pay/query/balance/")
    Observable<GetBalanceRes> getBalance();

    @Authorization
    @GET("pay/query/order/")
    Observable<ListRes<PayOrderModel>> getOrderList(@Query("direction") @Nullable String direction,
                                                    @Query("id") @Nullable Integer id,
                                                    @Query("limit") @Nullable Integer limit);
}
